/ Assembly List / LJCNetCommon / HTMLBuilder / GetLink

Namespace - LJCNetCommon


Parameters
fileName - The CSS file name.
textState - The current text state values.

Returns

The element.

Syntax

C#
public String GetLink(String fileName, TextState textState)

Gets the link element for a style sheet.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
var result = hb.Link("File.css", textState);

// result:
// <link rel="stylesheet" type="text/css" href="File.css" />

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.